// 使用 fetch 发起 GET 请求
fetch('http://localhost:3000/mi/swiper/shouye')
  .then(response => response.json())
  .then(data => {
    // console.log(data)
    const list = document.getElementById('swiper-wrapper');
    // console.log(list)
    data.forEach(item => {
      list.innerHTML += `
            <div class="swiper-slide" id="swiper-slide">
            <img src="${'http://localhost:3000/static/img/' + item.name}" alt="">
            </div>
        `
      // http://localhost:3000/img/swiper7.png
    });
  })
  .catch(error => console.error('Error:', error));

